import pandas as pd

""" Series创建原型:
pandas.Series(data=None, index=None, dtype=None, name=None, copy=False, fastpath=False)
"""

# 1.创建一个Series
series_a = pd.Series([1, 2, 3, 4, 5])
print(series_a)
""" 
0    1
1    2
2    3
dtype: int64
"""

# 2.创建一个Series，并指定名称
series_b = pd.Series([1, 2, 3, 4, 5], name='A')
print(series_b)
""" 
0    1
1    2
2    3
Name: A, dtype: int64
"""

# 3.创建一个Series，并指定索引
custom_index=['a', 'b', 'c', 'd', 'e']
series_c = pd.Series([1, 2, 3, 4, 5], index=custom_index, name='A')
print(series_c)
""" 
a    1
b    2
c    3
Name: A, dtype: int64
"""